home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / var / lib / dpkg / info / beagle.postinst < prev    next >
Encoding:
Text File  |  2007-04-12  |  530 b   |  33 lines

  1. #!/bin/sh
  2. # postinst file for beagle package.
  3.  
  4. set -e
  5.  
  6. case "$1" in 
  7.    configure)
  8.  
  9.    getent passwd beagleindex > /dev/null || \
  10.        adduser --system --home /var/cache/beagle beagleindex
  11.  
  12.    # We have to assure system indexes are world readable.
  13.    chmod 0755 /var/cache/beagle
  14.  
  15.    mkdir -p /var/cache/beagle/indexes
  16.    chown beagleindex /var/cache/beagle/indexes/
  17.  
  18.    ;;
  19.  
  20.    abort-upgrade|abort-remove|abort-deconfigure)
  21.    ;;
  22.  
  23.    *)
  24.    echo "postinst called with unknown argument \`$1'" >&2
  25.    exit 1
  26.    ;;
  27.  
  28. esac
  29.  
  30.  
  31.  
  32. exit 0
  33.